package com.hotline.communication.enums;

public enum RecordBusinessEnum {
    //业务类别    0 咨询  1 查询  2 投诉 3 违纪违法举报  4涉税举报  5  建议 6 深圳留言建议

    CONSULT(0,"咨询"),

    QUERY(1,"查询"),

    COMPLAIN(2,"投诉"),

    CALL_FAILED(3,"违纪违法举报"),

    TIP_OFF(4,"涉税举报"),

    SUGGESTION(5,"建议"),

    RECORD_SUGGESTING(6,"留言建议");
    /**
     * 编码
     */
    private Integer code;

    /**
     * 名称
     */
    private String name;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    RecordBusinessEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static RecordBusinessEnum getRecordBusinessEnum(Integer code){
        for (RecordBusinessEnum recordBusinessEnum : RecordBusinessEnum.values()){
            if(recordBusinessEnum.getCode().equals(code)){
                return recordBusinessEnum;
            }
        }
        return null;
    }

}
